@import "../../assets/style/variavles.less";

@like-size: 45px;

.post-item {
    margin: @block-spacing @block-spacing 2 * @block-spacing;
    padding-bottom: 2 * @block-spacing;
    border-bottom: 1px solid @border-color;
}

// 头部信息
.post-item__top {
    display: flex;
    align-items: center;
}

.post-item__user-avatar {
    width: 120px;
    height: 120px;
    background-color: @block-color;
}

.post-item__info {
    flex: 1;
    margin: 0 @block-spacing;
}

.post-item__user-name,
.post-item__date {
    display: block;
}

.post-item__user-name {
    color: @article-color;
}

.post-item__date {
    font-size: 80%;
    color: @sub-text-color;
    font-size: 0.8 * @default-font-size;
}

.post-item__folowing-button {
    font-size: 80%;
    padding: 0.5 * @block-spacing @block-spacing;
    text-align: center;
    border: 2px solid @article-color;
    color: @article-color;
}

// 视频
.post-item__film {
    width: 100%;
}

// 帖子描述
.post-item__desc {
    margin: @block-spacing 0;
}

.post-item__desc-article {
    color: @article-color;
}

// 底部按钮
.post-item__bottom-bar {
    display: flex;
    align-items: center;
    background-color: @block-color;
    border: 1px solid @border-color;
}

.post-item__bottom-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: @block-spacing 0;
}

.post-item__bottom-button.has-border {
    border-right: 1px solid @border-color;
}

.post-item__bottom-ico {
    width: @like-size;
    height: @like-size;
    margin-right: 0.5 * @block-spacing;
}

.post-item__bottom-text {
    font-size: @default-font-size;
    line-height: @default-font-size;
    color: @sub-text-color;
}
